curPath=$(pwd)

echo "install wget"
yum install wget

echo "install unzip"
yum install unzip

echo "install unzip"
yum install unzip

echo "install lua53"
cd $curPath/3rd/lua53
./install.sh

echo "install redis"
cd $curPath/3rd/redis
make
make install
make test
cd $curPath

echo "setup redis"
cd tool/setup/
./setup
cd $curPath

echo "install skynet"
cd $curPath/3rd/skynet
make clean
make linux
cd $curPath

echo "install server"
cd $curPath/server
make clean
make linux
cd $curPath

echo "install client"
cd $curPath/client
make clean
make linux
cd $curPath

echo "install openssl"
cd $curPath/openssl
make clean
make
make install
cd $curPath

echo "install rlwrap"
cd $curPath/3rd/rlwrap
./install.sh
cd $curPath


